package com.hd.pzhwlxt.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hd.pzhwlxt.mapper.BuildInfoMapper;
import com.hd.pzhwlxt.mapper.OnlineMessageMapper;
import com.hd.pzhwlxt.pojo.BuildInfo;
import com.hd.pzhwlxt.pojo.OnlineMessage;
import com.hd.pzhwlxt.service.BuildInfoService;
import com.hd.pzhwlxt.service.OnlineMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OnlineMessageServiceImpl extends ServiceImpl<OnlineMessageMapper, OnlineMessage> implements OnlineMessageService {
    @Autowired
    OnlineMessageMapper onlineMessageMapper;

    @Override
    public Page<OnlineMessage> getAllMessage(Integer pageNum, Integer pageSize) {
        return onlineMessageMapper.selectPage(new Page<OnlineMessage>(pageNum, pageSize), null);
    }
}
